package com.tsu.mall.order.Controller;

import com.tsu.mall.common.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/")
public class LogoutController {
	@GetMapping("/loginOut")
	public String removeSign(HttpServletResponse response){
		RequestUtil.getSession().removeAttribute("CURRENT_MEMBER");//把session中的标记删除
		return "redirect:/login";
	}

}
